
ac.skill('暴风雪'){
    temp = '攻击触发',
    odds = 15,
    model1 = [[387.mdl]],
    on_run = function(self,hero,target)
        local point = target:get_point()
        local damage = self:dmg_get()
        ac.timer(600,3,function()
            for a=1,12 do
                local last = point:random(300,a*30)
                last:add_effect(self.model1):remove()
            end
            ac.wait(700,function()
                --ac.hint_white(point,300,1)
                hero:aoe_damage(point,300,damage,self,function(u)
                    u:add_buff '暴风雪-减速'{time = 3}
                end)
            end)
        end):on_timer()
    end,
}

local buff = ac.buff['暴风雪-减速']

function buff:on_add()
    local hero = self.owner
    self:gc(hero:add('移动速度%',-20))
end